<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/gird.css" rel="stylesheet" type="text/css" />
<link href="css/iehack.css" rel="stylesheet" type="text/css" />
<link href="css/header.css" rel="stylesheet" type="text/css" />
<link href="css/usercenter.css" rel="stylesheet" type="text/css" />

<script src="../js/jquery_last.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="../js/style/validator.css"></link>
<script src="../js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="../js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="../js/DateTimeMask.js" type="text/javascript"></script>
<script defer="defer" src="../js/datepicker/WdatePicker.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"form1",onerror:function(msg){alert(msg)},onsuccess:function(){return true;}});
	
	$("#money_bak").formValidator({onshow:"请输入汇款备注",onfocus:"描述至少要输入10个汉字或20个字符",oncorrect:"恭喜你,你输对了",defaultvalue:"这家伙很懒，什么都没有留下。"}).inputValidator({min:20,onerror:"你输入的描述长度不正确,请确认"});
	$("#money_money").formValidator({forcevalid:true,triggerevent:"change",onshow:"请输入汇款金额",onfocus:"只能输入0-9之间的数字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,type:"value",onerrormin:"请输入汇款金额",onerror:"只能输入0-9之间的数字，请确认"});//.defaultPassed();
	$("#money_bank").formValidator({onshow:"请输入汇款银行",onfocus:"请输入汇款银行",oncorrect:"汇款银行正确"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"汇款银行两边不能有空符号"},onerror:"汇款银行不能为空,请确认"});
	$("#money_num").formValidator({onshow:"请输入汇款流水号",onfocus:"请输入汇款流水号",oncorrect:"汇款流水号合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"汇款流水号两边不能有空符号"},onerror:"汇款流水号不能为空,请确认"});    	
	$("#money_date").focus(function(){WdatePicker({skin:'whyGreen',oncleared:function(){$(this).blur();},onpicked:function(){$(this).blur();}})}).formValidator({onshow:"请输入的汇款日期",onfocus:"请输入的汇款日期，不能全部是0",oncorrect:"你输入的日期合法"}).inputValidator({min:"1900-01-01",max:"2099-01-01",type:"date",onerror:"日期必须在\"1900-01-01\"和\"2099-01-01\"之间"});//.defaultPassed();
});

</script>
</head>

<body onload="setup()">
<div class="page">
  <jsp:include page="inc/header.jsp" />
  <div class="content">
    <div class="gird-s5c19">
      <div class="col-main">
        <h2>填写汇款信息</h2>
        <ol class="progress step1">
          <li class="on">1.填写汇款信息</li>
          
          <li>2.汇款完成</li>
        </ol>
        <h3>第一步，填写汇款信息：</h3>
        <div class="input">
          <form name="form1" id="form1" action="../user/addMoneyInfo.action" method="post">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th width="120">付款途径：</th>
                <td width="350">
                <select id="money_tj" name="moneyInfo.money_tj">
                	<option value="1">银行卡转账</option>
                	<option value="2">邮局汇款</option>
                	<option value="3">公司转账</option>
                </select>
                </td>
                <td><div id="money_tjTip"></div> </td>
              </tr>
              <tr>
                <th>付款日期：</th>
                <td><input name="moneyInfo.money_date" type="text" id="money_date"/></td>
                <td><div id="money_dateTip"></div> </td>
              </tr>
              <tr>
                <th>汇款流水号：</th>
                <td><input name="moneyInfo.money_num" type="text" id="money_num"/></td>
                <td><div id="money_numTip"></div></td>
              </tr>
              <tr>
                <th>汇款方式：</th>
                <td>
					<select id="money_type" name="moneyInfo.money_type">
						<option value="1">网上转账</option>
						<option value="2">现金送存</option>
						<option value="3">柜面卡看转存</option>
						<option value="4">ATM转账</option>
					</select>
				</td>
                <td><div id="money_typeTip"></div> </td>
              </tr>
              <tr>
                <th>交易行名：</th>
                <td><input name="moneyInfo.money_bank" type="text" id="money_bank" /></td>
                <td><div id="money_bankTip"></div></td>
              </tr>
              
              <tr>
                <th>汇款金额：</th>
                <td><input name="moneyInfo.money_money" type="text" id="money_money" /></td>
                <td><div id="money_moneyTip"></div></td>
              </tr>
              <tr>
                <th>汇款备注：</th>
                <td><textarea id="money_bak" name="moneyInfo.money_bak" cols="50" rows="10">这里是十个中文字符哦</textarea></td>
                <td></td>
              </tr>
              
              <tr> 
             	 <th></th> 
			     <td colspan="2"><div id="money_bakTip" style="width:250px"></div></td>
			  </tr>
              
            </table>
        </div>
        <div class="btn"><button type="submit" class="next">填写完成,提交</button></div>
     </form>
      </div>
      <div class="col-sub">
        <div class="box">
          <div class="box-tp"></div>
          <div class="box-main">
            <h2>用户中心</h2>
            <ul>
              <li><a href="../user/getComRegState.action">申请企业会员</a></li>
              <li><a href="../user/webUserEdit.action">资料修改</a></li>
              <li><a href="../note/getNoteListByUser.action">我的消息</a></li>
              <li><a href="#">我要投稿</a></li>
              <li><a href="../user/UserLoginOut.action">退出</a></li>
            </ul>
          </div>
          <div class="box-bt"></div>
        </div>
      </div>
    </div>
  </div>
  <jsp:include page="inc/footer.jsp" />
</div>
</body>
</html>
<!--js初始化函数-->
			<SCRIPT language="javascript">
			setup()
			</SCRIPT>
